package cn.io0288.ks;

import android.net.Uri;

public class ContactsBean implements Comparable<ContactsBean> {
    // 联系人存储类
    public static final String TAG_REMOTE = "remote";
    public static final String TAG_LOCAL = "local";
    public final String _ID;
    public String name;
    public String[] phone;
    public String note;
    public String tag;
    public String lookupKey = "";
    public Uri cUri;

    public ContactsBean(String _ID){
        this._ID = _ID;
    }

    @Override
    public String toString() {
        return "MyContacts{" +
                "name='" + name + '\'' +
                ", phone='[" + String.join(", ", phone) + "]'" +
                ", note='" + note + '\'' +
                '}';
    }

    @Override
    public int compareTo(ContactsBean c) {
        return this.name.compareToIgnoreCase(c.name);
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public void setPhone(String[] array) {
        this.phone = array;
    }

    public void setLookupKey(String lookupKey) {
        this.lookupKey = lookupKey;
    }
}